package com.pro.h5case.admin.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.pro.h5case.admin.service.PlanManageService;
import com.pro.h5case.common.mapper.BPlanMapper;
import com.pro.h5case.common.model.BPlan;
@Service
public class PlanManageServiceImpl implements PlanManageService {
	@Resource
	BPlanMapper planMapper;
	@Override
	public int insertPlan(BPlan plan) {
		// TODO Auto-generated method stub
		return planMapper.insert(plan);
	}
	@Override
	public List<BPlan> selectPlanByMap(Map<String, Object> parameter) {
		// TODO Auto-generated method stub
		return planMapper.selectPlanByMap(parameter);
	}
	@Override
	public int countPlanByMap(Map<String, Object> parameter) {
		
		return planMapper.countPlanByMap(parameter);
	}
	@Override
	public BPlan selectByPrimaryKey(int planId) {
		
		return planMapper.selectByPrimaryKey(planId);
	}
	@Override
	public int deleteByPrimaryKey(int planId) {
		return planMapper.deleteByBPlan(planId);
	}
	@Override
	public int auditByPrimaryKey(int planId) {
		return planMapper.auditByPrimaryKey(planId);
	}
	@Override
	public int updatePlan(BPlan plan) {
		// TODO Auto-generated method stub
		return planMapper.updateByPrimaryKeySelective(plan);
	}
	@Override
	public int offlineByPrimaryKey(int planId) {
		// TODO Auto-generated method stub
		return planMapper.offlineByPrimaryKey(planId);
	}
	@Override
	public List<BPlan> selectSamePlanByMap(Map<String, Object> parameter) {
		// TODO Auto-generated method stub
		return planMapper.selectSamePlanByMap(parameter);
	}
	@Override
	public int countSamePlanByMap(Map<String, Object> parameter) {
		// TODO Auto-generated method stub
		return planMapper.countSamePlanByMap(parameter);
	}

}
